package xs.szw.service.enums;

import lombok.Getter;
import xs.szw.service.enums.base.IBaseEnum;

/**
 * @program: xs_oa
 * @description: 数据权限枚举
 * @author: Songzw
 * @create: 2025-02-11 13:13
 **/
@Getter
public enum DataScopeEnum implements IBaseEnum<Integer> {

    /**
     * value 越小，数据权限范围越大
     */
    ALL(0, "所有数据"),
    DEPT_AND_SUB(1, "部门及子部门数据"),
    DEPT(2, "本部门数据"),
    SELF(3, "本人数据");

    private final Integer value;

    private final String label;

     DataScopeEnum(Integer value, String label) {
         this.value = value;
         this.label = label;
    }

}
